﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using Server.Model;
using System.Runtime.Serialization;

namespace Server.Service.Model
{
    [DataContract]
    public class WCFBattery
    {
        [DataMember]
        public int Id { get; set; }
        [DataMember]
        public string Serial { get; set; }
        [DataMember]
        public WCFCar Car { get; set; }
        [DataMember]
        public WCFStation Station { get; set; }
        [DataMember]
        public WCFBatteryType BatteryType { get; set; }
        [DataMember]
        public List<WCFPartReservation> PartReservations { get; set; }

        public WCFBattery(Battery battery)
        {
            this.Id = battery.Id;
            this.Serial = battery.Serial;

            PartReservations = new List<WCFPartReservation>();
        }
    }
}
